package com.rxnetwork.sample.mvp;

public class BasePresenterImpl<V extends BaseView> implements BasePresenter<V> {
    protected V mView;

    @Override
    public void attachView(V view) {
        mView = view;
    }

    @Override
    public void detachView() {
        mView = null;
    }

    @Override
    public void showLoading() {
        if (mView != null)
            mView.baseShowLoading();
    }

    @Override
    public void hideLoading() {
        if (mView != null)
            mView.baseHideLoading();
    }
}
